package com.zheng.business.common.constant;

/**
 * Created by Administrator on 2018/12/8.
 */
public class BusinessConstant {

    /**
     * 文件上传路径
     */
    public static final String UPLOAD_FILE_PATH= "zheng.business.upload.path";

    /**
     * 业务订单状态
     */
    public static final String UM_CONSUMPTION_ORDER_STATUS = "UM_CONSUMPTION_ORDER_STATUS";
    /**
     * 雨伞状态
     */
    public static final String UM_UMBRELLA_STATUS  = "UM_UMBRELLA_STATUS";

    /**
     * 设备状态
     */
    public static final String UM_MACHINE_STATUS  = "UM_MACHINE_STATUS";

    /**
     * 支付方式
     */
    public static final String PAY_CHANNEL                      = "PAY_CHANNEL";

    /**
     * 雨伞订单状态
     */
    //初始化
    public static final int UM_CONSUMPTION_ORDER_STATUS_0 = 0;
    //借伞失败
    public static final int UM_CONSUMPTION_ORDER_STATUS_1 = 1;
    //自动取消订单
    public static final int UM_CONSUMPTION_ORDER_STATUS_2 = 2;
    // 3 正在进行中（已借出）
    public static final int UM_CONSUMPTION_ORDER_STATUS_3 = 3;
    //还伞失败
    public static final int UM_CONSUMPTION_ORDER_STATUS_4 = 4;
    //还伞成功，待结算
    public static final int UM_CONSUMPTION_ORDER_STATUS_5 = 5;
    // 6 订单完成（已完成状态）
    public static final int UM_CONSUMPTION_ORDER_STATUS_6 = 6;

    /**
     * 订单状态
     */
    public enum OrderStatus {

        /**
         * 初始化
         */
        INIT(0),
        /**
         * 借伞失败
         */
        LOAN_FAIL(1),
        /**
         * 自动取消订单
         */
        CANCEL(2),
        /**
         * 已借出
         */
        LOANING(3),
        /**
         * 还伞失败
         */
        REPAY_FAIL(4),
        /**
         * 待结算
         */
        REPAY_SUCCESS(5),
        /**
         * 订单完成
         */
        SUCCESS(6);

        private int value;

        OrderStatus(int value) {
            this.value = value;
        }

        public int getValue() {
            return value;
        }
    }

    /**
     * 统计时间类型
     *
     */
    public enum StatisticsDateType {

        /**
         * 日
         */
        DAY(1),
        /**
         * 月
         */
        MONTH(2),

        /**
         * 年
         */
        YEAR(3);

        private int value;

        StatisticsDateType(int value) {
            this.value = value;
        }

        public int getValue() {
            return value;
        }
    }


    /**
     * 提现账单状态
     */
    public enum BillStatus {

        /**
         * 申请
         */
        APPLY(1),
        /**
         * 处理中
         */
        PROCESSING(2),
        /**
         * 成功
         */
        SUCCESS(3),
        /**
         * 失败
         */
        FAIL(4),
        /**
         * 撤销
         */
        CANCEL(5);

        private int value;

        BillStatus(int value) {
            this.value = value;
        }

        public int getValue() {
            return value;
        }
    }
}
